<?php
require_once '../sub/init.php';
!function_exists('zeai_alone') && exit('forbidden');
//if(!ifint($cook_tg_uid))json_exit(array('flag'=>'nologin_tg','msg'=>'请先登录后再来','jumpurl'=>HOST.'/m/tg_my.php'));
require_once ZEAI.'m/tg_insert_init.php';
$currfields = "photo_s,grade,kind";
require_once 'tg_chkuser.php';
require_once ZEAI.'cache/config_reg.php';
require_once ZEAI.'cache/udata.php';
require_once ZEAI.'m/div_left_so.php';
$switch = json_decode($_ZEAI['switch'],true);
$FT=json_decode(FT,true);
$data_photo_s=$row['photo_s'];
$data_grade=$row['grade'];
$data_kind =$row['kind'];
$card_uid = $uid;
if($submitok != 'tg_my_ucard_detail'){
	$nodatatips = "<div class='nodatatips' style=\"margin-top:20px\"><i class='ico'>&#xe608;</i>暂时木有符合条件的会员</div>";
	$_ZEAI['pagesize']= 8;
	$fields   = "id,uname,nickname,sex,grade,photo_s,photo_f,areatitle,birthday,heigh,photo_ifshow";
	$ZEAI_SQL = " tguid<>".$cook_tg_uid." AND kind<>4 AND birthday<>'0000-00-00' AND heigh>0 AND areatitle<>'' AND flag=1";// AND photo_s<>'' AND photo_f=1
	$ORDER    = "  ORDER BY admtjtime DESC,refresh_time DESC,id DESC ";
	switch ($t) {
		case 'ext':
			$keyword = trimhtml(dataIO($keyword,'out'));
			if (!empty($keyword)){
				$ZEAI_SQL = "flag=1";
				if (ifint($keyword)){
					$ZEAI_SQL .= " AND id='$keyword' ";
				}else{
					$ZEAI_SQL .= " AND nickname LIKE '%".$keyword."%' ";
				}
			}else{
				$sex=trimhtml(dataIO($sex,'out'));if(!empty($sex))$ZEAI_SQL .= doinsql('sex',$sex);
				$photo_s=intval($photo_s);if ($photo_s == 1)$ZEAI_SQL .= " AND photo_s<>'' AND photo_f=1 ";
				$areaid=trimhtml(dataIO($areaid,'out'));
				$area2id=trimhtml(dataIO($area2id,'out'));
				$areaid=getareaSQL($areaid);
				$area2id=getareaSQL($area2id);
				if(!empty($areaid))$ZEAI_SQL .= " AND areaid LIKE '%".$areaid."%' ";
				if(!empty($area2id))$ZEAI_SQL .= " AND area2id LIKE '%".$area2id."%' ";
				//age
				$age=trimhtml(dataIO($age,'out'));
				if(!empty($age)){
					$V=explode(',',$age);
					$V1=intval($V[0]);$V2=intval($V[1]);
					if(ifint($V1))$ZEAI_SQL .= " AND ( (YEAR(CURDATE())-YEAR(birthday)-(RIGHT(CURDATE(),5)<RIGHT(birthday,5))) >= '$V1' ) ";
					if(ifint($V2))$ZEAI_SQL .= " AND ( (YEAR(CURDATE())-YEAR(birthday)-(RIGHT(CURDATE(),5)<RIGHT(birthday,5))) <= '$V2' ) ";
				}
				//heigh
				$heigh=trimhtml(dataIO($heigh,'out'));
				if(!empty($heigh)){
					$V=explode(',',$heigh);$V1=intval($V[0]);$V2=intval($V[1]);
					if (ifint($V1))$ZEAI_SQL .= " AND ( heigh >= '$V1' ) ";
					if (ifint($V2))$ZEAI_SQL .= " AND ( heigh <= '$V2' ) ";
				}
				//weigh
				$weigh=trimhtml(dataIO($weigh,'out'));
				if(!empty($weigh)){
					$V=explode(',',$weigh);$V1=intval($V[0]);$V2=intval($V[1]);
					if (ifint($V1))$ZEAI_SQL .= " AND ( weigh >= '$V1' ) ";
					if (ifint($V2))$ZEAI_SQL .= " AND ( weigh <= '$V2' ) ";
				}
				//edu
				$edu=intval($edu);if(!empty($edu))$ZEAI_SQL .= " AND ( edu >= '$edu' ) ";
				//pay
				$pay=intval($pay);if(!empty($pay))$ZEAI_SQL .= " AND ( pay >= '$pay' ) ";
				//job
				$job=trimhtml(dataIO($job,'out'));if(!empty($job))$ZEAI_SQL .= doinsql('job',$job);
				//love
				$love=trimhtml(dataIO($love,'out'));if(!empty($love))$ZEAI_SQL .= doinsql('love',$love);
				//child
				$child=trimhtml(dataIO($child,'out'));if(!empty($child))$ZEAI_SQL .= doinsql('child',$child);
				//house
				$house=trimhtml(dataIO($house,'out'));if(!empty($house))$ZEAI_SQL .= doinsql('house',$house);
				//nation
				$nation=trimhtml(dataIO($nation,'out'));if(!empty($nation))$ZEAI_SQL .= doinsql('nation',$nation);
				//car
				$car=trimhtml(dataIO($car,'out'));if(!empty($car))$ZEAI_SQL .= doinsql('car',$car);
				//marrytime
				$marrytime=trimhtml(dataIO($marrytime,'out'));if(ifint($marrytime))$ZEAI_SQL .= " AND marrytime='$marrytime' ";
				$par = "&sex=".$sex."&sex=".$sex."&photo_s=".$photo_s."&areaid=".$areaid."&area2id=".$area2id."&age=".$age."&heigh=".$heigh."&weigh=".$weigh."&edu=".$edu."&pay=".$pay."&job=".$job."&love=".$love."&child=".$child."&house=".$house."&car=".$car."&marrytime=".$marrytime."&nation=".$nation;
			}
			$ZEAI_SELECT = "SELECT ".$fields." FROM ".__TBL_USER__." WHERE ".$ZEAI_SQL.$ORDER;
			$TP=getTP($ZEAI_SQL);$ZEAI_total=$TP[0];$ZEAI_totalP=$TP[1];
		break;
		default:
			$ZEAI_SELECT="SELECT $fields FROM ".__TBL_USER__." WHERE ".$ZEAI_SQL.$ORDER;
			$TP=getTP($ZEAI_SQL);$ZEAI_total=$TP[0];$ZEAI_totalP=$TP[1];
		break;
	}
	$cs = "t=".$t."&showtype=".$showtype."&keyword=".$keyword.$par;
	if($submitok=='ZEAI_list'){exit(Zeai_ajax_list_fn($ZEAI_totalP,$p));}
}
if($submitok == 'ajax_tg_gzh_ewm'){
	if(is_weixin()){
		$token = wx_get_access_token();
		if(str_len($token) < 50)json_exit(array('flag'=>0,'tgpic'=>'','msg'=>'zeai_error_token'));
		$ticket_url  = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=".$token;
		$ticket_data = '{"action_name":"QR_LIMIT_STR_SCENE","action_info":{"scene":{"scene_str":"www_ZEAI_cn_tg_'.$cook_tg_uid.'_'.$card_uid.'"}}}';
		$ticket      = Zeai_POST_stream($ticket_url,$ticket_data);
		$T           = json_decode($ticket,true);
		$qrcode_url  = 'http://mp.weixin.qq.com/cgi-bin/showqrcode?ticket='.urlencode($T['ticket']);
		//json_exit(array('flag'=>1,'qrcode_url'=>$qrcode_url));
		$dbdir  = 'p/tmp/'.date('Y').'/'.date('m').'/';
		@mk_dir(ZEAI.'/up/'.$dbdir);
		$dbname = $dbdir.$cook_tg_uid.'_'.cdstrletters(3).'.jpg';
		$DST    = ZEAI.'/up/'.$dbname;
		$im=imagecreatefromjpeg($qrcode_url);
		imagejpeg($im,$DST,90);
		imagedestroy($im);
		json_exit(array('flag'=>1,'qrcode_url'=>UP.$dbname));
	}
	json_exit(array('flag'=>0,'msg'=>'请在微信操作'));	
}
?>
<!doctype html><html><head><meta charset="utf-8">
<title>推广相亲卡</title>
<?php echo HEADMETA; ?>
<meta name="generator" content="Zeai.cn V9" />
<link href="<?php echo RES;?>m/css/m.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<script src="<?php echo RES;?>www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<script src="<?php echo RES;?>m/js/m.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<!---->
<?php if($submitok != 'tg_my_ucard_detail'){?>
	<script src="<?php echo HOST;?>/cache/areadata.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script src="<?php echo RES;?>m/js/zeai_div_area.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script src="<?php echo HOST;?>/cache/udata.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script src="<?php echo RES;?>zeai_ios_select/separate/select.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script>var browser='<?php echo browser();?>',showtype=<?php echo intval($showtype);?>,up2='<?php echo UP;?>';</script>
    <link href="<?php echo RES;?>m/css/TG2.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<?php }?>
<link href="<?php echo RES;?>m/css/my_card.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<!---->
<style>
#backtop a{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
.blankbottom{height:13rem;padding-top:2rem;clear:both;overflow:auto;color:#999;clear:both;overflow:auto}
.CARD{background-color:#F75D55}
<?php if($submitok == 'tg_my_ucard_detail'){?>
body{background:#000}
<?php }?>
</style>
<script src="<?php echo RES;?>html2canvas.js"></script>    
<script src="<?php echo RES;?>html2canvas_img.js"></script>
</head>
<body>
<?php
if($submitok == 'tg_my_ucard_detail'){
	if(!ifint($cardid))exit(JSON_ERROR);
	$mate_diy = explode(',',$_ZEAI['mate_diy']);
	$fields  = "flag,grade,sex,photo_s,photo_f,birthday,areatitle,area2title,love,heigh,weigh,edu,pay,house,car,child,blood,pay,blood,job,admid,marrytime,companykind,smoking,drink,marrytime,photo_ifshow,RZ";
	$row = $db->NAME($card_uid,$fields);
	$grade      = $row['grade'];
	$sex        = $row['sex'];
	$photo_s    = $row['photo_s'];
	$photo_f    = $row['photo_f'];
	$birthday   = $row['birthday'];
	$areatitle  = dataIO($row['areatitle'],'out');
	$heigh      = $row['heigh'];
	$weigh      = $row['weigh'];
	$love       = $row['love'];
	$edu        = $row['edu'];
	$pay        = $row['pay'];
	$job        = $row['job'];
	$house      = $row['house'];
	$car        = $row['car'];
	$child      = $row['child'];
	$blood      = $row['blood'];
	$uflag      = $row['flag'];
	$photo_ifshow = $row['photo_ifshow'];
	$RZ         = $row['RZ'];$RZarr=explode(',',$RZ);
	if(in_array('identity',$RZarr)){
		$rzimg=RES.'cert_identity.png?'.$_ZEAI['cache_str'];
	}elseif(in_array('photo',$RZarr)){
		$rzimg=RES.'cert_photo.png?'.$_ZEAI['cache_str'];
	}else{
		$rzimg = '';	
	}
	//
	$admid        = intval($row['admid']);
	$marrytime    = $row['marrytime'];
	$companykind  = $row['companykind'];
	$area2title  = dataIO($row['area2title'],'out');
	$smoking  = $row['smoking'];
	$drink    = $row['drink'];
	$area_s_title = explode(' ',$areatitle);$area_s_title = $area_s_title[1];
	//$area_s_title2 = explode(' ',$area2title);$area_s_title2 = $area_s_title2[1].$area_s_title2[2];
	$area_s_title2 = $area2title;
	$sex_str2 = ($sex == 1)?'男':'女';
	$marrytime_str=udata('marrytime',$marrytime);
	$birthday_str  = (!empty($birthday) && $birthday!='0000-00-00')?getage($birthday).'岁':'';
	//
	$photo_flag=photo_s_out('{"sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$uflag.'","outkind":"flag"}');
	if (!empty($photo_s) && $photo_f == 1){
		if(!$photo_flag){
			$photo_s_url= UP.smb($photo_s,'blur');
		}else{
			$photo_s_url=UP.$photo_s;
		}
		$photo_m_url = smb($photo_s_url,'m');
		$photo_m_str = '<img src="'.$photo_m_url.'" class="m">';
		$photo_ewm_s_url = $photo_s_url;
		$photo_b_url = smb($photo_s_url,'b');
	}else{
		$photo_m_url = RES.'photo_m'.$sex.'.png';
		$photo_m_str = '<img src="'.RES.'photo_m'.$sex.'.png" class="m">';
		$photo_ewm_s_url = RES.'photo_s'.$sex.'.png';
		$photo_b_url = RES.'photo_m'.$sex.'.png';
	}
	$grade_str=($grade>1)?'VIP':'';
	////////////
	if(is_weixin()){
		$qrcode_url  = RES.'loadingData.gif';
	}else{
		$qrcode_url = HOST.'/m/reg.php?tguid='.$cook_tg_uid;
		$qrcode_url = HOST.'/sub/creat_ewm.php?url='.$qrcode_url;
	}
	////////////
	$bigextname=($cardid==11 || $cardid==12 || $cardid==13 || $cardid==14)?'.png':'.jpg';
	if($cardid == 11 || $cardid == 12){
		$cardbox_cls=' cardbox'.$cardid;
	}elseif($cardid == 13 || $cardid == 14){
		$cardbox_cls=' cardbox134';
	}
	if($cardid==11){?>
		<style>
			.cardbox .makebtn,.cardbox .ewmkind{z-index:180;background:#000;color:#f60}
			.cardbox .makebtn:hover,.cardbox .ewmkind:hover{background:#000;filter:alpha(opacity=100);-moz-opacity:1;opacity:1}
			.cardbox .card .mb{position:absolute;left:0;z-index:1;display:block}
			.cardbox .card .newb{width:100%;height:51%;background-repeat:no-repeat;position:absolute;left:0;top:0;z-index:0}
			.cardbox .card div{position:absolute;z-index:1;}
			.cardbox .card .sex11{left:36%;top:53%;font-size:2.4rem;color:#101d84;width:3.6rem;height:3.6rem;background-color:#fff;border:#323D91 .4rem solid;border-radius:3.6rem}
			.cardbox .card .uid11{left:65%;top:49%;font-size:2rem;color:#fff;text-align:center;width:33vw;text-shadow:0px 1px 1px #E87B29}
			.card .dl{width:100%;height:20%;left:65%;top:62%}
			.card .dl dt{width:30%;height:100%;float:left}
			.card .dl dt .photo_m11{background-repeat:no-repeat;width:76%;height:85%;border:#FEE49A .4rem solid;border-radius:1rem;margin-left:10%}
			.card .dl dd{width:70%;height:3.1rem;line-height:3.1rem;float:left;margin-top:-.5rem}
			.card .dl dd li{width:45%;height:100%;float:left;background-color:#6675E8;border-radius:3rem;margin:0 5% 4% 0}
			.card .dl dd li h5,.card .dl dd li span{height:100%;color:#fff;display:block;float:left;border-radius:3rem;font-size:1.5rem}
			.card .dl dd li h5{width:45%;background-color:#101D84}
			.card .dl dd li span{width:55%;background-color:#6675E8}
			.card div.dlmore {width:66%;left:2%;top:82%;text-align:left;line-height:150%;text-shadow:0px 1px 1px #E87B29}
			.card div.dlmore li{display:inline;padding:0 .5rem 0 0;font-size:1.3rem;color:#fff;text-align:left}
			.cardbox .card .ewm11{width:30%;left:70%;bottom:1%;text-align:center;font-size:1.2rem;color:#fff}
			.cardbox .card .ewm11 img{width:70%;margin:0 auto;display:block;margin-bottom:.3rem}
			.cardbox .card .sitename{bottom:1%;color:#ffc}
        </style>
	<?php }elseif($cardid==12){?>
    	<style>
			.cardbox .makebtn,.cardbox .ewmkind{z-index:4;}
			.cardbox .card .mb{position:absolute;left:0;z-index:1;display:block}
			.cardbox .card .newb{width:100%;height:67%;background-repeat:no-repeat;position:absolute;left:0;top:0;z-index:0}
			.cardbox .card div{position:absolute;z-index:1;}
			.cardbox .card .uid12{left:8%;top:57%;font-size:1.8rem;color:#FF4F5A;text-align:left;width:50vw;text-shadow:0px .2rem .2rem #fff}
			.card .dl{width:100%;height:20%;left:65%;top:63%}
			.card .dl dd{width:64%;height:2.6rem;line-height:2.6rem;float:left;margin-left:6%}
			.card .dl dd li{width:45%;height:100%;float:left;background-color:#FF7D7D;border-radius:3rem;margin:0 5% 4% 0}
			.card .dl dd li h5,.card .dl dd li span{height:100%;color:#fff;display:block;float:left;border-radius:3rem;font-size:1.5rem}
			.card .dl dd li h5{width:45%;background-color:#950026;text-shadow:0px 0px 0px #000}
			.card .dl dd li span{width:55%;background-color:#FF7D7D;text-shadow:0px 0px 0px #000}
			.card .dl dt{width:30%;height:100%;float:left}
			.card .dl dt .photo_m11{background-repeat:no-repeat;width:72%;height:82%;border:#FF7D7D .3rem solid;border-radius:1.5rem;margin-left:3%;margin-top:-14%}
			.card div.dlmore {width:60%;left:8%;top:80%;text-align:left;line-height:150%;text-shadow:0px 1px 1px #fff}
			.card div.dlmore li{display:inline;padding:0 .5rem 0 0;font-size:1.3rem;color:#000;text-align:left}
			.cardbox .card .ewm12{width:30%;left:68%;bottom:4%;text-align:center;font-size:1.2rem;color:#FF7D7D;line-height:100%;text-shadow:0px 1px 1px #fff}
			.cardbox .card .ewm12 img{width:68%;margin:0 auto;display:block;margin-bottom:.3rem}
			.cardbox .card .sitename{bottom:3%;color:#FF7D7D;text-shadow:0px 1px 1px #fff}
		</style>
    <?php }?>
    <style>
	.newm_pic1_10{width:120px;height:120px;object-fit:cover;-webkit-object-fit:cover}
	.newm_pic11{width:100%;height:100%;object-fit:cover;-webkit-object-fit:cover}
	img.rzpic{width:7rem;position:absolute;z-index:2}	
    </style>
    <i class='ico  Ugoback' onclick="zeai.back()">&#xe602;</i>
	<div class="my_card_detail" id="tg_card_detail"><!-- style="background-color:#000;top:0;padding:0;-webkit-user-select:none;-moz-user-select:none;}"-->
		<div class="cardbox<?php echo $cardbox_cls;?>">
        	<div class="card" id="cardcontent">
            	<?php if (!empty($rzimg) && in_array($cardid,array(11,12,13,14))){?><img src="<?php echo $rzimg;?>" class="rzpic" style="right:2rem;top:1.8rem;" /><?php }?>
                <img src="<?php echo RES;?>my_card/<?php echo $cardid.$bigextname.'?'.$_ZEAI['cache_str'];?>" class="mb" id="my_cardbigpic"><!--www_zeai_cn_V9-->
                <?php if ($cardid == 11){?>
                	<div class="newb" style="background:url('<?php echo $photo_b_url;?>');background-size:cover"></div>
                    <div class="sex11"><?php echo $sex_str2;?></div>
                    <div class="uid11">相亲卡卡号<br /><?php echo $card_uid;?></div>
                    <div class="dl">
                    	<dt><em class="photo_m11" style="background:url('<?php echo $photo_m_url;?>');background-position:center center;background-size:cover;overflow:hidden"><img src="<?php echo $photo_m_url;?>" class="newm_pic1_11"></em></dt>
                        <dd>
                        	<li><h5>生年</h5><span><?php if (!empty($birthday) && $birthday!='0000-00-00'){echo substr($birthday,0,4);}?></span></li>
                        	<li><h5>婚况</h5><span><?php echo udata('love',$love);?></span></li>
                        	<li><h5>学历</h5><span><?php echo udata('edu',$edu);?></span></li>
                        	<li><h5>身高</h5><span><?php echo udata('heigh',$heigh);?></span></li>
                        	<li><h5>月薪</h5><span><?php echo udata('pay',$pay);?></span></li>
                        	<li><h5>地区</h5><span><?php echo $area_s_title;?></span></li>
                        </dd>
                    </div>
                    <div class="dlmore">
						<?php if (!empty($birthday) && $birthday!='0000-00-00'){?>
                            <li>属<?php echo getbirthpet($birthday);?></li>
                            <li><?php echo getstar($birthday);?></li>
                        <?php }?>
                        <?php if (!empty($child)){?><li><?php echo udata('child',$child);?></li><?php }?>
                        <?php if (!empty($area2title)){?><li>户籍<?php echo $area_s_title2;?></li><?php }?>
                        <?php if (!empty($job)){?><li>职业<?php echo udata('job',$job);?></li><?php }?>
                        <?php if (!empty($companykind)){?><li><?php echo udata('companykind',$companykind);?></li><?php }?>
                        <?php if (!empty($house)){?><li><?php echo udata('house',$house);?></li><?php }?>
                        <?php if (!empty($car)){?><li><?php echo udata('car',$car);?></li><?php }?>
                        <?php if (!empty($smoking)){?><li><?php echo udata('smoking',$smoking);?></li><?php }?>
                        <?php if (!empty($drink)){?><li><?php echo udata('drink',$drink);?></li><?php }?>
                        <?php if (!empty($marrytime) && $marrytime_str!='不限'){?><li>期望<?php echo $marrytime_str;?>结婚</li><?php }?>
                    </div>
                    <div class="ewm11"><img src="<?php echo $qrcode_url;?>" id="card_ewm" class="uewm"><font id="ewmtitle">长按识别二维码</font></div>
                    <div class="sitename">－<?php echo $_ZEAI['siteName'];?>提供－</div>
                <?php }elseif($cardid == 12){ ?>
                	<div class="newb" style="background:url('<?php echo $photo_b_url;?>');background-size:cover"></div>
                    <div class="uid12">相亲卡卡号:<?php echo $card_uid;?></div>
                    <div class="dl">
                        <dd>
                        	<li><h5>性别</h5><span><?php echo $sex_str2;?></span></li>
                        	<li><h5>生年</h5><span><?php if (!empty($birthday) && $birthday!='0000-00-00'){echo substr($birthday,0,4);}?></span></li>
                        	<li><h5>婚况</h5><span><?php echo udata('love',$love);?></span></li>
                        	<li><h5>身高</h5><span><?php echo udata('heigh',$heigh);?></span></li>
                        	<li><h5>学历</h5><span><?php echo udata('edu',$edu);?></span></li>
                        	<li><h5>地区</h5><span><?php echo $area_s_title;?></span></li>
                        </dd>
                        <dt><em class="photo_m11" style="background:url('<?php echo $photo_m_url;?>');background-position:center center;background-size:cover;overflow:hidden"><img src="<?php echo $photo_m_url;?>" class="newm_pic1_11"></em></dt>
                    </div>
                    <div class="dlmore">
						<?php if (!empty($birthday) && $birthday!='0000-00-00'){?>
                            <li>属<?php echo getbirthpet($birthday);?></li>
                            <li><?php echo getstar($birthday);?></li>
                        <?php }?>
                        <?php if (!empty($child)){?><li><?php echo udata('child',$child);?></li><?php }?>
                        <?php if (!empty($area2title)){?><li>户籍<?php echo $area_s_title2;?></li><?php }?>
                        <?php if (!empty($pay)){?><li>月薪<?php echo udata('pay',$pay);?></li><?php }?>
                        <?php if (!empty($job)){?><li>职业<?php echo udata('job',$job);?></li><?php }?>
                        <?php if (!empty($companykind)){?><li><?php echo udata('companykind',$companykind);?></li><?php }?>
                        <?php if (!empty($house)){?><li><?php echo udata('house',$house);?></li><?php }?>
                        <?php if (!empty($car)){?><li><?php echo udata('car',$car);?></li><?php }?>
                        <?php if (!empty($smoking)){?><li><?php echo udata('smoking',$smoking);?></li><?php }?>
                        <?php if (!empty($drink)){?><li><?php echo udata('drink',$drink);?></li><?php }?>
                        <?php if (!empty($marrytime) && $marrytime_str!='不限'){?><li>期望<?php echo $marrytime_str;?>结婚</li><?php }?>
                    </div>
                    <div class="ewm12"><img src="<?php echo $qrcode_url;?>" id="card_ewm" class="uewm"><font id="ewmtitle">识别二维码<br>马上认识Ta</font></div>
                    <div class="sitename">－<?php echo $_ZEAI['siteName'];?>提供－</div>
                    
                <?php }elseif($cardid == 13 || $cardid == 14){ ?> 
                	<div class="newb" style="background-image:url('<?php echo $photo_b_url;?>')"><img src="<?php echo $photo_b_url;?>"></div>
                	<div class="uid uid<?php echo $cardid;?>"><?php echo '相亲卡号：'.$card_uid;?></div>
                    <div class="data data<?php echo $cardid;?>">
                        <li><?php echo $sex_str2;?></li>
                        <?php if (!empty($birthday) && $birthday!='0000-00-00'){echo '<li>'.substr($birthday,0,4);?>年</li><?php }?>
                        <?php if (!empty($birthday) && $birthday!='0000-00-00'){?>
                            <li>属<?php echo getbirthpet($birthday);?></li>
                            <li><?php echo getstar($birthday);?></li>
                        <?php }?>
                        <?php if (!empty($areatitle)){?><li>在<?php echo $area_s_title;?>工作 </li><?php }?>
                        <?php if (!empty($area2title)){?><li>户籍<?php echo $area_s_title2;?> </li><?php }?>
                        <?php if (!empty($love)){?><li><?php echo udata('love',$love);?><?php if (!empty($child)){?>(<?php echo udata('child',$child);?>)<?php }?></li><?php }?>
                        <?php if (!empty($heigh)){?><li>身高<?php echo udata('heigh',$heigh);?></span></li><?php }?>
                        <?php if (!empty($edu)){?><li>学历<?php echo udata('edu',$edu);?></li><?php }?>
                        <?php if (!empty($job)){?><li>职业<?php echo udata('job',$job);?></li><?php }?>
                        <?php if (!empty($companykind)){?><li><?php echo udata('companykind',$companykind);?></li><?php }?>
                        <?php if (!empty($pay)){?><li>月收入<?php echo udata('pay',$pay);?></li><?php }?>
                        <?php if (!empty($house)){?><li><?php echo udata('house',$house);?></li><?php }?>
                        <?php if (!empty($car)){?><li><?php echo udata('car',$car);?></li><?php }?>
                        <?php if (!empty($marrytime) && $marrytime_str!='不限'){?><li>期望<?php echo $marrytime_str;?>结婚</li><?php }?>
                    </div>
                    <img src="<?php echo $qrcode_url;?>" id="card_ewm" class="hnewm">
                <?php }else{ ?>
                        <div class="newm" style="width:120px;height:120px;overflow:hidden"><img src="<?php echo $photo_m_url;?>" class="newm_pic1_10"></div>
                        <div class="uid"><?php  echo $grade_str.'会员编号：'.$card_uid;?></div>
                        <div class="me">
                            <li><?php echo $sex_str2;?></li>
                            <?php if (!empty($birthday) && $birthday!='0000-00-00'){?><li><?php echo substr($birthday,0,4);?>年</li><?php }?>
                            <?php if (!empty($birthday) && $birthday!='0000-00-00'){?>
                                <li>属<?php echo getbirthpet($birthday);?></li>
                                <li><?php echo getstar($birthday);?></li>
                            <?php }?>
                            <?php if (!empty($areatitle)){?><li>在<?php echo $area_s_title;?>工作</li><?php }?>
                            <?php if (!empty($area2title)){?><li>户籍<?php echo $area_s_title2;?></li><?php }?>
                            <?php if (!empty($love)){?><li><?php echo udata('love',$love);?><?php if (!empty($child)){?>（<?php echo udata('child',$child);?>）<?php }?></li><?php }?>
                            <?php if (!empty($heigh)){?><li>身高<?php echo udata('heigh',$heigh);?></span></li><?php }?>
                            <?php if (!empty($edu)){?><li>学历<?php echo udata('edu',$edu);?></li><?php }?>
                            <?php if (!empty($job)){?><li>职业<?php echo udata('job',$job);?></li><?php }?>
                            <?php if (!empty($companykind)){?><li><?php echo udata('companykind',$companykind);?></li><?php }?>
                            <?php if (!empty($pay)){?><li>月收入<?php echo udata('pay',$pay);?></li><?php }?>
                            <?php if (!empty($house)){?><li><?php echo udata('house',$house);?></li><?php }?>
                            <?php if (!empty($car)){?><li><?php echo udata('car',$car);?></li><?php }?>
                            <?php if (!empty($smoking)){?><li><?php echo udata('smoking',$smoking);?></li><?php }?>
                            <?php if (!empty($drink)){?><li><?php echo udata('drink',$drink);?></li><?php }?>
                            <?php if (!empty($marrytime) && $marrytime_str!='不限'){?><li>期望<?php echo $marrytime_str;?>结婚</li><?php }?>
                        </div>
                        <div class="you" style="display:none"><?php echo $mate_li_out;?></div>
                        <div class="ewm"><img src="<?php echo $qrcode_url;?>" id="card_ewm" class="uewm"><font id="ewmtitle">长按识别二维码</font></div>
                        <div class="sitename"><?php echo $_ZEAI['siteName'];?>提供</div>
                        <?php if (!empty($rzimg)){?><img src="<?php echo $rzimg;?>" class="rzpic" style="right:5rem;bottom:5rem;" /><?php }?>
                <?php }?>
            </div>
        	<button type="button" class="btn size4 makebtn" id="makecard"><i class="ico ">&#xe6b6;</i> 下载相亲卡</button>
        </div>
        <div class="cardbox_view" id="tg_cardbox_view"></div>
	</div>
    <script src="<?php echo RES;?>m/js/tg_my_ucard.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script>
		var cardid=<?php echo $cardid;?>,uid=<?php echo $card_uid;?>;
		<?php
		if ($cardid == 11 || $cardid == 12 || $cardid == 13|| $cardid == 14){?>
			window.onload=function(e){
				cardcontent.style.height=my_cardbigpic.height+'px';
			}
		<?php }else{ ?>
			var card=o('cardcontent').children,photo_m=card[0],newm=card[1],uidbox=card[2],me=card[3],you=card[4],ewm=card[5],sitename=card[6],defm='<?php echo $photo_m_url;?>';
				//photo_m.onload=function(){
				window.onload=function(){
					var js=tg_get_mLTW(cardid);
					var W=photo_m.offsetWidth;
					var l=js.l*W;t=js.t*W;w=js.w*W;
					newm.style.width=w+'px';newm.style.height=newm.style.width;newm.style.left=l+'px';newm.style.top=t+'px';newm.style.backgroundImage='url('+defm+')';
					uidbox.style.top=parseInt(js.uid_t*W)+'px';uidbox.style.color=js.uid_color;
					me.style.top=parseInt(js.me_t*W)+'px';me.style.color=js.uid_color;
					you.style.top=parseInt(js.you_t*W)+'px';you.style.color=js.uid_color;
					ewm.style.top=parseInt(js.ewm_t*W)+'px';ewm.style.color=js.ewm_color;
					sitename.style.top=parseInt(js.sitename_t*W)+'px';sitename.style.color=js.sitename_color;
				}
		<?php }?>
		cardcontent.addEventListener('touchmove',function(e) {e.preventDefault();});
		function tg_makecardFn_lht() {
			zeai.msg(0);
			zeai.msg('<img src="'+HOST+'/res/loadingData.gif" class="middle">正在生成',{time:10})
			html2canvas(cardcontent).then(function(canvas) {
				var cW=canvas.width,cH=canvas.height;
				var img = Canvas2Image.convertToImage(canvas,cW, cH);
				<?php if(is_h5app()){?>
					zeai.msg(0);
					app_save_share({durl:HOST,data:img.src,uid:<?php echo ifint($cook_tg_uid)?$cook_tg_uid:0;?>});					
				<?php }else{?>
					tg_cardbox_view.html('');
					img.style.width='80%';
					tg_cardbox_view.append(img);
					img.onload=function(){
						zeai.msg(0);
						setTimeout(function(){
							ZeaiM.div_pic({fobj:o(tg_card_detail),obj:tg_cardbox_view,title:'',w:tg_cardbox_view.offsetWidth/10,h:tg_cardbox_view.offsetHeight/10,fn:function(){
								if(!zeai.empty(o('tg_cardbox_view')))o('tg_cardbox_view').html('');
							}});
							zeai.msg(0);
							zeai.msg('长按图片保存到手机，发送/分享给朋友',{time:4});
						},200);
					}
				<?php }?>
			});
		}		
		makecard.onclick=tg_makecardFn_lht;
		<?php if(is_weixin()){?>
			setTimeout(function(){
				zeai.ajax({url:HOST+'/m/tg_my_ucard'+zeai.ajxext+'submitok=ajax_tg_gzh_ewm&uid='+uid},function(e){var rs=zeai.jsoneval(e);
					if(rs.flag==1){
						card_ewm.src=rs.qrcode_url;
						card_ewm.onload=function(){setTimeout(function(){makecard.click();},400);}
					}
				});
			},200);
		<?php }else{?>
			setTimeout(function(){makecard.click();},1200);
		<?php }?>
    </script>
	<?php
    //22222
}elseif($submitok == 'tg_my_ucard_list'){?>
	<?php
	$mini_title='点击模版生成相亲卡';
	$mini_class = 'top_mini4 top_miniCARD bgcolor ';
	require_once ZEAI.'m/top_mini.php';?>
	<div class="CARD">
		<div class="topbg">
			<ul id="tg_zeai_xqk">
                <li value="13"><img src="<?php echo RES;?>my_card/13_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="14"><img src="<?php echo RES;?>my_card/14_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="11"><img src="<?php echo RES;?>my_card/11_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="12"><img src="<?php echo RES;?>my_card/12_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="3"><img src="<?php echo RES;?>my_card/3_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="4"><img src="<?php echo RES;?>my_card/4_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="9"><img src="<?php echo RES;?>my_card/9_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="10"><img src="<?php echo RES;?>my_card/10_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="2"><img src="<?php echo RES;?>my_card/2_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="1"><img src="<?php echo RES;?>my_card/1_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="5"><img src="<?php echo RES;?>my_card/5_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="6"><img src="<?php echo RES;?>my_card/6_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="7"><img src="<?php echo RES;?>my_card/7_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
                <li value="8"><img src="<?php echo RES;?>my_card/8_s.jpg?<?php echo $_ZEAI['cache_str'];?>"></li>
			</ul>
		</div>
        <div class="clear"></div>
	</div>
	<script src="<?php echo RES;?>m/js/tg_my_ucard.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script>tg_zeai_xqkFn(<?php echo $card_uid;?>);</script>
	<?php
}else{?>
	<style>
	.top_mini4 .R a{font-size:1.6rem;display:inline-block;color:#fff;z-index:3}
	.top_mini4 .R i{font-size:1.6rem;}
    .div_left_so a.ed,
    .div_left_so a.ed:after{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
    .div_left_so ul.def li.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;background-color:rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.1)}
    .div_left_so .listbox dl dd span.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;border-top-color:<?php echo $_ZEAI['mob_mbcolor'];?>}
    .div_left_so_areabox .ul dt.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;border-top-color:<?php echo $_ZEAI['mob_mbcolor'];?>}
    .div_left_so_areabox .ul li a.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;background-color:rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.1)}
    .areabox .ul li a.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;background-color:rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.1)}
    .areabox .ul dt.ed,.listbox dl dd span.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>;border-top-color:<?php echo $_ZEAI['mob_mbcolor'];?>}
    .ios-select-widget-box header.iosselect-header a.sure{background-color:<?php echo $_ZEAI['mob_mbcolor'];?>;}
    </style>
	<?php
	$nav='tg_my';
	$mini_title='单身用户相亲卡';
	$mini_class='top_mini4 bgcolor yunbox';
	$mini_R = '<a class="so" id="so"><i class="ico">&#xe68c;</i> 筛选</a>';
	require_once ZEAI.'m/top_mini.php';?>
    <div class="tg_card_tips">分享会员相亲卡，让用户加入单身团，获得收益</div>
    <div class="TG_Uxqk" id="ZEAI_list"><?php if($ZEAI_totalP>0){echo Zeai_ajax_list_fn($ZEAI_totalP,$p);}else{echo $nodatatips;}?></div>
    <script>var scs='<?php echo trimhtml($cs); ?>';</script>
    <?php if ($ZEAI_total > $_ZEAI['pagesize']){?>
        <div class="blankbottom">没有更多了</div>
        <script>
        var ZEAI_totalP = parseInt(<?php echo $ZEAI_totalP; ?>);
        var postjson = {submitok:'ZEAI_list',ZEAI_totalP:ZEAI_totalP};
        if(!zeai.empty(scs))Object.assign(postjson,tojson(scs.split('&')));
        zeaiOnscroll_json={url:'tg_my_ucard'+zeai.extname,data:postjson};
        //
        </script>
        <script src="<?php echo RES;?>m/js/zeai_loading_data.js?<?php echo $_ZEAI['cache_str'];?>"></script>
        <div id="backtop"><a id="btmTopBtn"><i class="ico">&#xe60c;</i>顶部</a></div>
	<?php }?>
    <script src="<?php echo RES;?>m/js/tg_my_ucard_so.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <!--div_left_so-->
    <div id="rangebox"></div>
    <div class="div_left_so" id="user_so">
        <form action="<?php echo HOST;?>/m/tg_my_ucard.php" method="get" name="www.yzlove.com" id="ZEAI_CN_FORM_ext">
            <div class="form_uid">
            <input name="keyword" type="text" class="input" id="keyword" maxlength="20" value="<?php echo $keyword;?>" placeholder="按会员UID/昵称" autocomplete="off">
            <button type="submit" class="ico">&#xe6c4;</button>
            </div>
            <?php
			div_left_so_out(array('tbody'=>$FT['sex']['t'],'t'=>'sex','tv'=>$sex,'subkind'=>2,'newarr'=>json_decode($_UDATA['sex']),'ulcls'=>' col3'));//性别
            div_left_so_out(array('tbody'=>$FT['photo_s']['t'],'t'=>'photo_s','tv'=>$photo_s,'subkind'=>2,'newarr'=>json_decode('[{"i":"1","v":"有头像"}]'),'ulcls'=>' col3'));//头像
            //默认值
            function range_str($F,$V) {
                if(empty($V))return '';
                global $_UDATA;
                $FARR=explode(',',$V);
                $F1=$FARR[0];$F2=$FARR[1];
                $F_UDATA=json_decode($_UDATA[$V],true);
                $F_str = mateset_out($F1,$F2,$F_UDATA['dw']);
                $F_str = str_replace("不限","",$F_str);
                return $F_str;
            }		
            ?>
            <div class="listbox"><dl id="age" data="<?php echo (empty($age))?'23,24':$age;?>" class="rang"><dt>年龄范围</dt><dd><span><?php echo range_str('age',$age);?></span></dd></dl></div>
            <input type="hidden" id="form_age" name="age" value="<?php echo $age;?>">
            <div class="listbox"><dl id="heigh" data="<?php echo (empty($heigh))?'160,175':$heigh;?>" class="rang"><dt>身高范围</dt><dd><span><?php echo range_str('heigh',$heigh);?></span></dd></dl></div>
            <input type="hidden" id="form_heigh" name="heigh" value="<?php echo $heigh;?>">
            <div class="listbox"><dl id="weigh" data="<?php echo (empty($weigh))?'50,70':$weigh;?>" class="rang"><dt>体重范围</dt><dd><span><?php echo range_str('weigh',$weigh);?></span></dd></dl></div>
            <input type="hidden" id="form_weigh" name="weigh" value="<?php echo $weigh;?>">
            <!--地区-->
            <!--gz-->
            <div id="areabox" class="areabox"><div class="ul"><li><dl><dd></dd></dl></li></div></div>
            <input type="hidden" id="form_areaid" name="areaid" value="<?php echo $areaid;?>">
            <input type="hidden" id="form_areatitle" name="areatitle" value="<?php echo $areatitle;?>">
            <div class="listbox">
                <dl id="areaid" data="<?php echo $areaid;?>"><dt>工作地</dt><dd><span id="areatitle"><?php echo $areatitle;?></span></dd></dl>
            </div>
            <!--hj-->
            <div id="areabox2" class="areabox"><div class="ul"><li><dl><dd></dd></dl></li></div></div>
            <input type="hidden" id="form_area2id" name="area2id" value="<?php echo $area2id;?>">
            <input type="hidden" id="form_area2title" name="area2title" value="<?php echo $area2title;?>">
            <div class="listbox">
                <dl id="area2id" data="<?php echo $area2id;?>"><dt>户籍地</dt><dd><span id="area2title"><?php echo $area2title;?></span></dd></dl>
            </div>
            <input type="hidden" name="t" value="ext">
            <input type="hidden" name="showtype" value="<?php echo $showtype;?>">
            <!--地区结束-->
            <?php
            div_left_so_out(array('tbody'=>$FT['nation']['t'],'t'=>'nation','tv'=>$nation,'subkind'=>3,'newarr'=>json_decode($_UDATA['nation']),'ulcls'=>' col3','show'=>'off'));//民族
            div_left_so_out(array('tbody'=>$FT['love']['t'],'t'=>'love','tv'=>$love,'subkind'=>3,'newarr'=>json_decode($_UDATA['love']),'ulcls'=>' col3','show'=>'off'));//婚况
            div_left_so_out(array('tbody'=>$FT['child']['t'],'t'=>'child','tv'=>$child,'subkind'=>3,'newarr'=>json_decode($_UDATA['child']),'ulcls'=>' col3','show'=>'off'));//小孩
            div_left_so_out(array('tbody'=>'最低'.$FT['edu']['t'],'t'=>'edu','tv'=>$edu,'subkind'=>2,'newarr'=>json_decode($_UDATA['edu']),'ulcls'=>' col3','show'=>'off'));//学历
            div_left_so_out(array('tbody'=>'最低'.$FT['pay']['t'],'t'=>'pay','tv'=>$pay,'subkind'=>2,'newarr'=>json_decode($_UDATA['pay']),'ulcls'=>' col3','show'=>'off'));//收入
            div_left_so_out(array('tbody'=>$FT['job']['t'],'t'=>'job','tv'=>$job,'subkind'=>3,'newarr'=>json_decode($_UDATA['job']),'ulcls'=>' col3','show'=>'off'));//职业
            div_left_so_out(array('tbody'=>$FT['house']['t'],'t'=>'house','tv'=>$house,'subkind'=>3,'newarr'=>json_decode($_UDATA['house']),'ulcls'=>' col2','show'=>'off'));//房
            div_left_so_out(array('tbody'=>$FT['car']['t'],'t'=>'car','tv'=>$car,'subkind'=>3,'newarr'=>json_decode($_UDATA['car']),'ulcls'=>' col2','show'=>'off'));//车
            div_left_so_out(array('tbody'=>$FT['marrytime']['t'],'t'=>'marrytime','tv'=>$marrytime,'subkind'=>2,'newarr'=>json_decode($_UDATA['marrytime']),'ulcls'=>' col3','show'=>'off'));//结婚时间	
            ?>
            <script>div_left_so_init('user_so')</script>
            <div class="savebox"><button type="button" class="btn size3 reset" onClick="div_left_so_reset('user_so')">重置</button><button type="submit" class="btn size3 zeaibg ico">&#xe6c4; 确定</button></div>
        </form>
    </div>
    <!--div_left_so end-->    
    <?php 
	require_once ZEAI.'m/tg_bottom.php';
}
function tg_mateset_out_card($i1,$i2,$unit){
	if($i1 == 0 && $i2 == 0){
		$str = "不限";
	}elseif($i1 == $i2){
		$str = $i1.$unit;
	}elseif($i1 > 0 && $i2 > 0){
		$str = $i1."-".$i2.$unit;
	}elseif($i1 == 0 && $i2 > 0){
		$str = $i2.$unit."以下";
	}elseif($i1 > 0 && $i2 == 0){
		$str = $i1.$unit."以上";
	}
	return $str;
}
function getTP($TJ,$moretb=false) {
	global $_ZEAI,$db;
	if($moretb){
		$rt = $db->query("SELECT COUNT(*) FROM (".$TJ.") ZEAI__cn_SQL");$row = $db->fetch_array($rt,'num');
	}else{
		$rt = $db->query("SELECT COUNT(*) FROM (SELECT id FROM ".__TBL_USER__." WHERE ".$TJ." LIMIT ".$_ZEAI['limit'].") ZEAI__cn_SQL");$row = $db->fetch_array($rt,'num');
	}
	$total=$row[0];
	return array($total,ceil($total/$_ZEAI['pagesize']));
}
function rows_ulist($rows,$p) {
	global $_ZEAI;
	$uid     = $rows['id'];
	$uname    = dataIO($rows['uname'],'out');
	$nickname = trimhtml(dataIO($rows['nickname'],'out'));
	$sex      = $rows['sex'];
	$grade    = $rows['grade'];
	$photo_s  = $rows['photo_s'];
	$photo_f  = $rows['photo_f'];
	$areatitle= $rows['areatitle'];
	$birthday = $rows['birthday'];
	$heigh    = $rows['heigh'];
	$photo_ifshow = $rows['photo_ifshow'];
	$nickname = (empty($nickname))?$uname:$nickname;
	$birthday_str  = (getage($birthday)<=0)?'':getage($birthday).'岁　';
	$heigh_str     = (empty($heigh))?'':$heigh.'cm　';
	$aARR = explode(' ',$areatitle);$areatitle = $aARR[1].$aARR[2];
	$areatitle_str = (empty($areatitle))?'':$areatitle;
	$photo_s_url=photo_s_out('{"sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$uflag.'","outkind":"url"}');	
	$O  = '<a href="tg_my_ucard.php?submitok=tg_my_ucard_list&uid='.$uid.'">';
	$O .= '	<dt><img src="'.$photo_s_url.'"></dt>';
	$O .= '	<dd><h4>'.uicon($sex.$grade).'<span>'.$nickname.'</span></h4><h6>'.$birthday_str.$heigh_str.$areatitle_str.'</h6></dd>';
	$O .= '	<button type="button" class="btn size2 HONG4">推广相亲卡</button>';
	$O .= '</a>';
	return $O;
}
?>